<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script>
			var sum = 0;
			for(var i = 0; i <= 100; i++) {
				if(i % 2 == 0) {
					sum = sum + i;
				}
			}
			alert(sum);
		</script>
	</body>

</html>